<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="/static/amis/sdk/sdk.css" />
    <link rel="stylesheet" href="/static/amis/sdk/helper.css" />
    <link rel="stylesheet" href="/static/amis/sdk/iconfont.css" />
    <style>
        html,
        body,
        .app-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
        }
    </style>
    <title></title>
</head>
<body>

<div id="root" class="app-wrapper"></div>

</body>
<script src="/static/amis/sdk/sdk.js"></script>
<script type="text/javascript">
    (function() {
        let amis = amisRequire('amis/embed');
        // 通过替换下面这个配置来生成不同页面
        let amisJSON = <?php echo json_encode($amis);?>;
        let amisScoped = amis.embed('#root', amisJSON);
    })();
</script>
</html>